home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- set the floatPrecision to 5
- set x0 to the right of sprite 4 - the left of sprite 4
- set y0 to the bottom of sprite 6 - the top of sprite 6
- set r0 to sqrt((x0 * x0) + (y0 * y0))
- put integer(180.0 / PI * float(atan(float(y0) / float(x0)))) into field "Ang1"
- put r0 into field "R1"
- put x0 into field "X1"
- put y0 into field "Y1"
- set the floatPrecision to 2
- put float(float(y0) / float(r0)) into field "Sine"
- put float(float(x0) / float(r0)) into field "Cosine"
- put float(float(y0) / float(x0)) into field "Tangent"
- set the floatPrecision to 5
- set the locV of sprite 15 to the locV of sprite 8 - 3
- set the locV of sprite 13 to the top of sprite 4 - (y0 / 2) - 30
- end
-